var fs = require('fs');
var path = require('path');

fs.readdir('D:\\16002090106_node',function(err,list){
    if(err){
        console.log(err);
    }else{
        console.log(list);
        for (var item of list){
            if (path.extname(item) === '.js'){
                console.log(item);
            }
        }
    }
});